package com.lagou.initializer;

import javax.servlet.ServletContainerInitializer;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.HandlesTypes;
import java.util.Set;

/**
 * Servlet 3.0+容器启动时将自动扫描类路径以查找实现Spring的WebApplicationInitializer接口的所有实现，
 * 将其放进一个Set集合中，提供给ServletContainerInitializer中onStartup方法的第一个参数
 */
public class MySpringServletContainerInitializer implements ServletContainerInitializer {
    @Override
    public void onStartup(Set<Class<?>> set, ServletContext servletContext) throws ServletException {

    }
}
